import request from '../../utils/request'

// export function getUserAclList({ page, limit, username, nickName }) {
//   return request({
//     method: 'get',
//     url: `http://localhost:9529/dev-api/admin/acl/user/${page}/${limit}`,
//     params: { username, nickName }
//   })
// }

//获取list
export function getPermission() {
  return request({
    method: 'get',
    url: '/admin/acl/permission'
  })
}

//删除
export function perRemove(id) {
  return request({
    method: 'delete',
    url: `/admin/acl/permission/remove/${id}`
  })
}

//新增
export function addPermission(data) {
  return request({
    method: 'post',
    url: `/admin/acl/permission/save`,
    data
  })
}

//修改
export function updatePermission(data) {
  return request({
    method: 'put',
    url: '/admin/acl/permission/update',
    data
  })
}
